package com.project.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;

public class RoomBean {
    private int id;
    private String address;
    private int price;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate createDate;

    public RoomBean() {
    }

    public RoomBean(String address, int price, LocalDate createDate) {
        this.address = address;
        this.price = price;
        this.createDate = createDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", createDate=" + createDate +
                "}\n";
    }
}
